﻿using WeDonekRpc.Helper.Validate;

namespace Shop.RemoteModel.GoodsSku.Model
{
    public class GoodsAttr
    {
        /// <summary>
        /// 名称
        /// </summary>
        [NullValidate("shop.goods.attr.name.null")]
        [LenValidate("shop.goods.attr.name.len", 1, 10)]
        public string Name
        {
            get;
            set;
        }
        /// <summary>
        /// 值
        /// </summary>
        [LenValidate("shop.goods.attr.name.len", 0, 255)]
        public string Value
        {
            get;
            set;
        }
        /// <summary>
        /// 是否是目录
        /// </summary>
        public bool IsDir { get; set; }
        /// <summary>
        /// 属性
        /// </summary>
        public GoodsAttr[] Attrs { get; set; }
    }
}
